import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
//网络请求
import MinRequest from './utils/MinRequest.js'
import minRequest from './utils/Api.js'
//第三方UI组件
import uView from "@/uni_modules/uview-ui"
//store
import store from './store'
//配置
import common from './common.js'
App.mpType = 'app'
Vue.prototype.$minApi = minRequest.apis
Vue.prototype.store = store
Vue.prototype.$common = common
Vue.use(MinRequest)
Vue.use(uView)
const app = new Vue({
  ...App,
  minRequest,
  store
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif